with open('./names.txt') as fileObject:
    contents = fileObject.read()
    print(contents)

print('\n')

with open('./names.txt', 'r') as fileObject:
    for line in fileObject.readlines():
        print(line.strip('\n'))
        print('line over')

with open('./names.txt', 'a') as fo:
    fo.write('read over!')
